package cn.pfz.mapper;

import cn.pfz.domain.Employee;
import cn.pfz.query.EmployeeQuery;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    List<Employee>selectRusult(EmployeeQuery qo);

    void batchDeleteByEmployeeIds(@Param("ids") Long[] ids);

    Employee selectByUsername(@Param("username") String username);
}